{% extends "base.html" %}

{% load gravatar %}
{% load render_statmech %}
{% load databasefilters %}



{% block title %}
{% if section != '' %}
RMG Statmech {{ section|title }}
{% else %}
RMG Statmech Database
{% endif %}
{% endblock %}

{% block extrahead %}
<style>
table.statmechEntryData {
    text-align: center;
    margin-bottom: 1em;
}


table.statmechEntryData td.key {
    font-weight: bold;
    text-align: right;
}

table.statmechEntryData td.equals {
    text-align: center;
}

table.statmechEntryData td.value {
    text-align: left;
}

table.statmechEntryData td.reference p {
    margin: 0px;
}
</style>


{% endblock extrahead%}

{% block navbar_items %}
<li><a href="{% url 'database:index' %}">Database</a></li>
<li><a href="{% url 'database:statmech' %}">Statmech</a></li>
<li><a href="{% url 'database:statmech' section=section %}">{{ section|title }}</a></li>
<li><a href="{% url 'database:statmech' section=section subsection=subsection %}">{{ subsection }}</a></li>
{% if entry.index and entry.index != -1 %}<li><a href="{% url 'database:statmech-entry' section=section subsection=subsection index=entry.index %}">{{ entry.index }}. {{ entry.label }}</a></li>{% endif %}
{% endblock %}

{% block sidebar_items %}
{% endblock %}

{% block page_title %}{% if entry.index %}{{ entry.index }}. {{ entry.label }}{% endif %}{% endblock %}

{% block page_body %}
<h2>Structure</h2>
<p>
{% if structure == '' %}
No structure given.
{% else %}
{{ structure|safe }}
{% endif %}
</p>

<h2>Statmech Data</h2>
<table class="statmechEntryData">
{{ statmech|render_statmech_math:user }}
</table>

<h2>Reference</h2>
{% include "reference.html" %}

<br/>

{% endblock %}
